package com.ruoyix.aicode.domain;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 页面部分结构类
 */
@Data
public class PageSection {
    private String id;
    private List<PageSection> children;

    public PageSection(String id) {
        this.id = id;
        this.children = new ArrayList<>();
    }

    public String getId() {
        return id;
    }

    public List<PageSection> getChildren() {
        return children;
    }

    public void addChild(PageSection child) {
        children.add(child);
    }
}
